From 191a7d28f87ee454135493c59d1273a4e9c577ab Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 9 Aug 2005 13:53:15 +0000 Subject: [PATCH] Directly including ../tools breaks building in separate object tree, as well as building from mkpatch patch (I believe Rik hit that one). This puts xenstore headers in linux-public. Signed-off-by: Chris Wright --- linux-2.4-xen-sparse/mkbuildtree | 3 +-- linux-2.6-xen-sparse/drivers/xen/xenbus/Makefile | 4 ---- linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c | 2 +- linux-2.6-xen-sparse/mkbuildtree | 3 ++- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/linux-2.4-xen-sparse/mkbuildtree b/linux-2.4-xen-sparse/mkbuildtree index 852781bb1a..40381c8895 100755 --- a/linux-2.4-xen-sparse/mkbuildtree +++ b/linux-2.4-xen-sparse/mkbuildtree @@ -103,10 +103,9 @@ relative_lndir ${RS} rm -f mkbuildtree set ${RS}/../linux-2.6-xen-sparse -[ "$1" == "${RS}/../linux-2.6-xen-parse" ] && { echo "no Linux 2.6 sparse tree at ${RS}/../linux-2.6-xen-sparse"; exit 1; } +[ "$1" == "${RS}/../linux-2.6-xen-sparse" ] && { echo "no Linux 2.6 sparse tree at ${RS}/../linux-2.6-xen-sparse"; exit 1; } LINUX_26="$1" - # Create links to the shared definitions of the Xen interfaces. rm -rf ${AD}/include/asm-xen/xen-public mkdir ${AD}/include/asm-xen/xen-public diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/Makefile b/linux-2.6-xen-sparse/drivers/xen/xenbus/Makefile index fc36f5ded6..c539e8061b 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/Makefile +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/Makefile @@ -4,7 +4,3 @@ xenbus-objs = xenbus-objs += xenbus_comms.o xenbus-objs += xenbus_xs.o xenbus-objs += xenbus_probe.o - -XEN_TOOLS_DIR := "../tools" -vpath %.h $(XEN_TOOLS_DIR) -EXTRA_CFLAGS += -I $(XEN_TOOLS_DIR) diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c index 310cd0066c..211677b35d 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c @@ -30,7 +30,6 @@ #include #include -#include "xenstore/xenstored.h" #include #include #include @@ -39,6 +38,7 @@ #include #include #include +#include "xenstored.h" #include "xenbus_comms.h" #define streq(a, b) (strcmp((a), (b)) == 0) diff --git a/linux-2.6-xen-sparse/mkbuildtree b/linux-2.6-xen-sparse/mkbuildtree index 3556506d6d..c5287e5dca 100755 --- a/linux-2.6-xen-sparse/mkbuildtree +++ b/linux-2.6-xen-sparse/mkbuildtree @@ -102,10 +102,11 @@ for i in `find . -type l`; do rm -f $i; done relative_lndir ${RS} rm -f mkbuildtree - # Create links to the shared definitions of the Xen interfaces. rm -rf ${AD}/include/asm-xen/xen-public mkdir ${AD}/include/asm-xen/xen-public cd ${AD}/include/asm-xen/xen-public relative_lndir ../../../${RS}/../xen/include/public +cd ${AD}/drivers/xen/xenbus +ln -sf ../../../${RS}/../tools/xenstore/xenstored.h -- 2.30.2